package internal

import "fmt"

func RestoreBetDetail(TrackNum int32, BetNum int32, BigSmallDict int32, SingleEvenDict int32) string {
	var keystring string
	if TrackNum == ZERO_VALUE {
		if BetNum != ZERO_VALUE {
			keystring = fmt.Sprintf("%d-%d", 11, BetNum)
		} else {
			if BigSmallDict == ZERO_VALUE {
				if SingleEvenDict == SINGLE_TYPE {
					keystring = fmt.Sprintf("%d-%d", 11, SPECIAL_SINGLE_VALUE)
				}
				if SingleEvenDict == EVEN_TYPE {
					keystring = fmt.Sprintf("%d-%d", 11, SPECIAL_EVEN_VALUE)
				}
			} else if BigSmallDict == BIG_TYPE {
				keystring = fmt.Sprintf("%d-%d", 11, SPECIAL_BIG_VALUE)
			} else if BigSmallDict == SMALL_TYPE {
				keystring = fmt.Sprintf("%d-%d", 11, SPECIAL_SMALL_VALUE)
			}
		}
	} else {
		if BetNum != ZERO_VALUE {
			keystring = fmt.Sprintf("%d-%d", TrackNum, BetNum)
		} else {
			if BigSmallDict == ZERO_VALUE {
				if SingleEvenDict == SINGLE_TYPE {
					keystring = fmt.Sprintf("%d-%d", TrackNum, SPECIAL_SINGLE_VALUE)
				}
				if SingleEvenDict == EVEN_TYPE {
					keystring = fmt.Sprintf("%d-%d", TrackNum, SPECIAL_EVEN_VALUE)
				}
			} else if BigSmallDict == BIG_TYPE {
				keystring = fmt.Sprintf("%d-%d", TrackNum, SPECIAL_BIG_VALUE)
			} else if BigSmallDict == SMALL_TYPE {
				keystring = fmt.Sprintf("%d-%d", TrackNum, SPECIAL_SMALL_VALUE)
			}
		}
	}
	return keystring
}
